package com.dykj.entity;

import java.io.Serializable;

/**
 * materialinventory
 * @author 
 */
public class Materialinventory implements Serializable {
    private String materialcode;

    private String materialname;

    private String specificationmodel;

    private String supplementaryspecifications;

    private Double number;

    private String numberunit;

    private Double mass;

    private String position;

    private String isavailable;

    private String warehousecodeofthisshelf;

    private Double restnumber;

    private String restnumberunit;

    private String materiallotnumber;

    private String batchnumber;

    private static final long serialVersionUID = 1L;

    public String getMaterialcode() {
        return materialcode;
    }

    public void setMaterialcode(String materialcode) {
        this.materialcode = materialcode;
    }

    public String getMaterialname() {
        return materialname;
    }

    public void setMaterialname(String materialname) {
        this.materialname = materialname;
    }

    public String getSpecificationmodel() {
        return specificationmodel;
    }

    public void setSpecificationmodel(String specificationmodel) {
        this.specificationmodel = specificationmodel;
    }

    public String getSupplementaryspecifications() {
        return supplementaryspecifications;
    }

    public void setSupplementaryspecifications(String supplementaryspecifications) {
        this.supplementaryspecifications = supplementaryspecifications;
    }

    public Double getNumber() {
        return number;
    }

    public void setNumber(Double number) {
        this.number = number;
    }

    public String getNumberunit() {
        return numberunit;
    }

    public void setNumberunit(String numberunit) {
        this.numberunit = numberunit;
    }

    public Double getMass() {
        return mass;
    }

    public void setMass(Double mass) {
        this.mass = mass;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getIsavailable() {
        return isavailable;
    }

    public void setIsavailable(String isavailable) {
        this.isavailable = isavailable;
    }

    public String getWarehousecodeofthisshelf() {
        return warehousecodeofthisshelf;
    }

    public void setWarehousecodeofthisshelf(String warehousecodeofthisshelf) {
        this.warehousecodeofthisshelf = warehousecodeofthisshelf;
    }

    public Double getRestnumber() {
        return restnumber;
    }

    public void setRestnumber(Double restnumber) {
        this.restnumber = restnumber;
    }

    public String getRestnumberunit() {
        return restnumberunit;
    }

    public void setRestnumberunit(String restnumberunit) {
        this.restnumberunit = restnumberunit;
    }

    public String getMateriallotnumber() {
        return materiallotnumber;
    }

    public void setMateriallotnumber(String materiallotnumber) {
        this.materiallotnumber = materiallotnumber;
    }

    public String getBatchnumber() {
        return batchnumber;
    }

    public void setBatchnumber(String batchnumber) {
        this.batchnumber = batchnumber;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Materialinventory other = (Materialinventory) that;
        return (this.getMaterialcode() == null ? other.getMaterialcode() == null : this.getMaterialcode().equals(other.getMaterialcode()))
                && (this.getMaterialname() == null ? other.getMaterialname() == null : this.getMaterialname().equals(other.getMaterialname()))
                && (this.getSpecificationmodel() == null ? other.getSpecificationmodel() == null : this.getSpecificationmodel().equals(other.getSpecificationmodel()))
                && (this.getSupplementaryspecifications() == null ? other.getSupplementaryspecifications() == null : this.getSupplementaryspecifications().equals(other.getSupplementaryspecifications()))
                && (this.getNumber() == null ? other.getNumber() == null : this.getNumber().equals(other.getNumber()))
                && (this.getNumberunit() == null ? other.getNumberunit() == null : this.getNumberunit().equals(other.getNumberunit()))
                && (this.getMass() == null ? other.getMass() == null : this.getMass().equals(other.getMass()))
                && (this.getPosition() == null ? other.getPosition() == null : this.getPosition().equals(other.getPosition()))
                && (this.getIsavailable() == null ? other.getIsavailable() == null : this.getIsavailable().equals(other.getIsavailable()))
                && (this.getWarehousecodeofthisshelf() == null ? other.getWarehousecodeofthisshelf() == null : this.getWarehousecodeofthisshelf().equals(other.getWarehousecodeofthisshelf()))
                && (this.getRestnumber() == null ? other.getRestnumber() == null : this.getRestnumber().equals(other.getRestnumber()))
                && (this.getRestnumberunit() == null ? other.getRestnumberunit() == null : this.getRestnumberunit().equals(other.getRestnumberunit()))
                && (this.getMateriallotnumber() == null ? other.getMateriallotnumber() == null : this.getMateriallotnumber().equals(other.getMateriallotnumber()))
                && (this.getBatchnumber() == null ? other.getBatchnumber() == null : this.getBatchnumber().equals(other.getBatchnumber()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMaterialcode() == null) ? 0 : getMaterialcode().hashCode());
        result = prime * result + ((getMaterialname() == null) ? 0 : getMaterialname().hashCode());
        result = prime * result + ((getSpecificationmodel() == null) ? 0 : getSpecificationmodel().hashCode());
        result = prime * result + ((getSupplementaryspecifications() == null) ? 0 : getSupplementaryspecifications().hashCode());
        result = prime * result + ((getNumber() == null) ? 0 : getNumber().hashCode());
        result = prime * result + ((getNumberunit() == null) ? 0 : getNumberunit().hashCode());
        result = prime * result + ((getMass() == null) ? 0 : getMass().hashCode());
        result = prime * result + ((getPosition() == null) ? 0 : getPosition().hashCode());
        result = prime * result + ((getIsavailable() == null) ? 0 : getIsavailable().hashCode());
        result = prime * result + ((getWarehousecodeofthisshelf() == null) ? 0 : getWarehousecodeofthisshelf().hashCode());
        result = prime * result + ((getRestnumber() == null) ? 0 : getRestnumber().hashCode());
        result = prime * result + ((getRestnumberunit() == null) ? 0 : getRestnumberunit().hashCode());
        result = prime * result + ((getMateriallotnumber() == null) ? 0 : getMateriallotnumber().hashCode());
        result = prime * result + ((getBatchnumber() == null) ? 0 : getBatchnumber().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", materialcode=").append(materialcode);
        sb.append(", materialname=").append(materialname);
        sb.append(", specificationmodel=").append(specificationmodel);
        sb.append(", supplementaryspecifications=").append(supplementaryspecifications);
        sb.append(", number=").append(number);
        sb.append(", numberunit=").append(numberunit);
        sb.append(", mass=").append(mass);
        sb.append(", position=").append(position);
        sb.append(", isavailable=").append(isavailable);
        sb.append(", warehousecodeofthisshelf=").append(warehousecodeofthisshelf);
        sb.append(", restnumber=").append(restnumber);
        sb.append(", restnumberunit=").append(restnumberunit);
        sb.append(", materiallotnumber=").append(materiallotnumber);
        sb.append(", batchnumber=").append(batchnumber);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}